Ext.define('SKJF.view.MASTER.v_mstfakturpajak_form', {
	extend	: 'Ext.form.Panel',
	
	alias	: 'widget.v_mstfakturpajak_form',
	
	//region:'east',
	//id: 'east-region-container',
	
	title		: 'Create/Update mstfakturpajak',
    bodyPadding	: 5,
    autoScroll	: true,
    
    initComponent: function(){
    	/*
		 * Deklarasi variable setiap field
		 */
		 
		var TGL_ENTRY_field = Ext.create('Ext.form.field.Date', {
			itemId: 'TGL_ENTRY_field',
			name: 'TGL_ENTRY', /* column name of table */
			fieldLabel: 'TGL_ENTRY',
			format: 'Y-m-d',
			allowBlank: false /* jika primary_key */
		});
		var JENIS_field = Ext.create('Ext.form.field.Text', {
			name: 'JENIS', /* column name of table */
			fieldLabel: 'JENIS',
			maxLength: 1 /* length of column name */
		});
		var KODE_TRANSAKSI_field = Ext.create('Ext.form.field.Text', {
			name: 'KODE_TRANSAKSI', /* column name of table */
			fieldLabel: 'KODE_TRANSAKSI',
			maxLength: 2 /* length of column name */
		});
		var STATUS_field = Ext.create('Ext.form.field.Text', {
			name: 'STATUS', /* column name of table */
			fieldLabel: 'STATUS',
			maxLength: 1 /* length of column name */
		});
		var CABANG_field = Ext.create('Ext.form.field.Text', {
			name: 'CABANG', /* column name of table */
			fieldLabel: 'CABANG',
			maxLength: 3 /* length of column name */
		});
		var TAHUN_field = Ext.create('Ext.form.field.Text', {
			name: 'TAHUN', /* column name of table */
			fieldLabel: 'TAHUN',
			maxLength: 2 /* length of column name */
		});
		var NO_AWAL_field = Ext.create('Ext.form.field.Text', {
			name: 'NO_AWAL', /* column name of table */
			fieldLabel: 'NO_AWAL',
			maxLength: 8 /* length of column name */
		});
		var NO_AKHIR_field = Ext.create('Ext.form.field.Text', {
			name: 'NO_AKHIR', /* column name of table */
			fieldLabel: 'NO_AKHIR',
			maxLength: 8 /* length of column name */
		});
		var URUT_TERAKHIR_field = Ext.create('Ext.form.field.Text', {
			name: 'URUT_TERAKHIR', /* column name of table */
			fieldLabel: 'URUT_TERAKHIR',
			maxLength: 8 /* length of column name */
		});		
		var ID_field = Ext.create('Ext.form.field.Hidden', {
			name: 'ID', /* column name of table */
			fieldLabel: 'ID'
		});		
        Ext.apply(this, {
            fieldDefaults: {
                labelAlign: 'right',
                labelWidth: 120,
                msgTarget: 'qtip',
				anchor: '100%'
            },
			defaultType: 'textfield',
            items: [TGL_ENTRY_field,JENIS_field,KODE_TRANSAKSI_field,STATUS_field,CABANG_field,TAHUN_field,NO_AWAL_field,NO_AKHIR_field,URUT_TERAKHIR_field,ID_field],
			
	        buttons: [{
                iconCls: 'icon-save',
                itemId: 'save',
                text: 'Save',
                disabled: true,
                action: 'save'
            }, {
                iconCls: 'icon-add',
				itemId: 'create',
                text: 'Create',
                action: 'create'
            }, {
                iconCls: 'icon-reset',
                text: 'Cancel',
                action: 'cancel'
            }]
        });
        
        this.callParent();
    }
});